<!DOCTYPE>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
		<meta name="format-detection" content="telephone=no">
		<title>随堂测试一</title>
		<link rel="stylesheet" href="__PUBLIC__/doExercise/css/jqmobo.css">
		<script src="__PUBLIC__/doExercise/js/jquery.min.js"></script>
		<script type="text/javascript">
			var k = "0";
			var enterTime = "{$enterTime}";
		</script>
	</head>
	<body>
		<form id="form1" method="post" action="">
			<div id="toptitle">
				<h1 class="htitle">随堂测试一</h1>
			</div>
			<div id="divContent">
				<foreach name="list" item="list">
					<fieldset class="fieldset" style="" id="fieldset1">
					<div class="field ui-field-contain" id="div1" req="1" topic="1" data-role="fieldcontain" type="3">
						<div class="field-label">
							{$list.id}
							<img src="{$list.questionPicPath}{$list.questionPicName}" />
						</div>
						<div class="ui-controlgroup">
							<div class="ui-radio" id="choiceA" onclick="k = 'A';"><span class="jqradiowrapper"><a class="jqradio" href="javascript:;"></a></span>
								<label for="q1_1">A<span id="opA"></span></label>
							</div>
							<div class="ui-radio" id="choiceB" onclick="k = 'B';"><span class="jqradiowrapper"><a class="jqradio" href="javascript:;"></a></span>
								<label for="q1_1">B<span id="opB"></span></label>
							</div>
							<div class="ui-radio" id="choiceC" onclick="k = 'C';"><span class="jqradiowrapper"><a class="jqradio" href="javascript:;"></a></span>
								<label for="q1_1">C<span id="opC"></span></label>
							</div>
							<div class="ui-radio" id="choiceD" onclick="k = 'D';"><span class="jqradiowrapper"><a class="jqradio" href="javascript:;"></a></span>
								<label for="q1_1">D<span id="opD"></span></label>
							</div>
						</div>
					</div>
				</fieldset>
					
				</foreach>
				
			</div>
			<div class="footer" id="footer">
				<div id="divSubmit" style="padding: 10px; margin-top: 0px;">
					{$page|str_replace = '页','题',###}
				</div>
			</div>
			
			<div class="footer" id="footer" style="display: none;">
				<div id="divSubmit1" style="padding: 10px;">
					<a id="ctlNext1" class="button blue" href=""><span style="color: #f7f7f7;">提交</span></a>
				</div>
			</div>
		</form>
		<script type="text/javascript">
			//用于控制选择后的特效
			$(".ui-radio").click(function(event) {
				$(".focuschoice").toggleClass('focuschoice');
				$(".jqchecked").toggleClass('jqchecked');
				$(this).toggleClass('focuschoice');
				$(this).find('.jqradio').toggleClass('jqchecked');
				localStorage.setItem('sadf',k);
				alert(k);
			});
		</script>
	</body>

</html>